home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1440.dms / var1440.adf / DataMasterDEMO / DataMasterManual < prev    next >
Text File  |  1994-07-04  |  67KB  |  1,545 lines

  1.  
  2. ----------------------------------------------------------------------
  3. ----------------------------------------------------------------------
  4. -----                                                            -----
  5. -----                                                            -----
  6. -----                                                            -----
  7. -----                  Data Master - Manual                      -----
  8. -----                                                            -----
  9. -----                                                            -----
  10. -----                                                            -----
  11. ----------------------------------------------------------------------
  12. ----------------------------------------------------------------------
  13.  
  14. Data Master - Manual (for Version 1.01 04.07.1994)
  15. © 1993, 1994 Teemu Sipilä
  16. All rights reserved  
  17.  
  18. Address:
  19. Teemu Sipilä
  20. Koskitie 25
  21. FIN-12380 Leppäkoski
  22. Finland
  23.  
  24. Email (after 1.9.1994):
  25. tesipila@hut.fi
  26.  
  27. 1. What is Data Master?
  28. ----------------------------------------------------------------------
  29.  
  30. 1.1. Data Master
  31. ----------------
  32.  
  33.     Data Master is a database program programmed for Amiga computers.
  34. It's not the best database program for Amiga (the best shareware data-
  35. base program??), but it's cheap and specially made for the average
  36. user.
  37.     In the program there are five different field types which are
  38. string (text), integer, floating point, type (selection) and boolean
  39. field types. In one record can be up to 256 different fields and the
  40. number of records is practically limited only by the size of the free
  41. memory. Records can be sorted based on eight key fields.
  42.     You can search from the database those records which match search
  43. patterns given by the user (for example, all records whose first 
  44. field's first letter is A). You can also search for text strings from
  45. the whole database. Using Data Master it's possible to print the data-
  46. base for printer or save it as an ASCII file to the disk. Number
  47. fields can be displayed on the screen as graphic diagrams, and using
  48. this function you can simply compare records. There is a separate
  49. field editor for the creating of the fields. Records can be, of
  50. course, moved, copied, deleted or cleared as a single record or as
  51. a block which includes many records. 
  52.     In the following table there are some maximum values used by the
  53. program.
  54.  
  55.  The number of records            99999 (memory limits also)
  56.  The number of fields             256
  57.  The number of alternative texts  256
  58.   (type fields)          
  59.  The length of the field title    13
  60.  The length of the string field   255
  61.  The length of the unit string    9
  62.  The number of key fields         8
  63.  
  64. 1.2. Amiga system
  65. -----------------
  66.  
  67.     Data Master works fine also in the basic Amiga-system (Amiga 500
  68. with KickStart 1.3), it's true, but when using the program with Kick-
  69. Start 1.3, there isn't a file requester. Data Master can be used also
  70. in the NTSC machines, even if, the screen size is smaller than in the 
  71. PAL machines.
  72.     The program is tested in a few different Amiga systems, but the
  73. most of the testing is done by using Amiga 2000 and KickStart 2.0, so
  74. there can be small bugs in other systems. In addition there is, at
  75. this time, one general bug the reason of which is unknown. The program
  76. may cause a guru, if you enter 'ram:' to the directory in the file
  77. requester. 
  78.  
  79.  
  80. 2. Database terms
  81. ----------------------------------------------------------------------
  82.  
  83. 2.1. Basics
  84. -----------
  85.  
  86.     A database includes many records or cards. For example, we can
  87. imagine a address database which includes information about person's
  88. name, address, age and phone number. This entity is a database or
  89. a register. In the database there are records, and for every person
  90. there is it's own record. A record includes fields which are having
  91. different kind of information about the person. In this example the 
  92. fields are person's name, address, age and phone number.   
  93.  
  94. 2.2. Field types
  95. ----------------
  96.  
  97.     Let's look the following example database:
  98.  
  99. NAME:      Mark             
  100. AGE:       22
  101. AGE GROUP: Young
  102. SEX:       Male
  103. WEIGHT:    78.2 kg
  104.  
  105. NAME:      Joanna
  106. AGE:       11
  107. AGE GROUP: Child
  108. SEX:       Female
  109. WEIGHT:    45.5 kg
  110.  
  111. NAME:      Hugo        Field type: String (or text)
  112. AGE:       67                      Integer 
  113. AGE GROUP: Old                     Type (selection)
  114. SEX:       Male                    Boolean  
  115. WEIGHT:    67.0                    Float (floating point number)
  116.  
  117.     In this example there are five fields of different type in one
  118. record. The first field, NAME, is a string field (or text field) which
  119. contains ASCII text.
  120.     The next field, AGE, is a integer number field which can have a
  121. value ranging from -2 147 483 648 to 2 147 483 647. The last field,
  122. WEIGTH, is a floating point number field and it differs from the 
  123. integer field in a fact that the floating point number can contain
  124. also desimals. Note that when using floating point numbers and the
  125. number is big or it has many desimals, the number isn't very accurate.
  126. For example, if you type a number 3344.5566, the program 'rounds' it
  127. to be 3344.556641.
  128.     The third field of the record is called AGE GROUP and it is a type
  129. field (same as a selection field). When you define fields, you have to
  130. give the specific number of alternative texts from which the user 
  131. selects the best one when editing the database. In the example
  132. alternative texts are child, young, adult and old. Using this field
  133. type makes it easier to edit the database, because you have to just
  134. select the best text and you don't have to write the same text many
  135. times. Also if the database is large, using type fields saves memory
  136. and disk space. 
  137.     Nearly the same field type is also a boolean field type which is
  138. the type of the fourth field, SEX. For the boolean field you have to
  139. determine two alternative text from which other one is 'on' and the
  140. other is 'off'. 
  141.  
  142. 2.3. Main field and key fields
  143. ------------------------------
  144.  
  145.     One of the fields, usually the first, is set to be the main field 
  146. of the record. This field can be though as the title of the record.
  147. In our example the main field is naturally NAME. 
  148.    If you want to sort records for alphabetic order, you have to first
  149. set key field(s) which are used by the sort function. For example, if
  150. you want to sort the example database for order on the age, you set
  151. the AGE field to be the key field #1. If there are persons with the
  152. same age, you can set the NAME field to be the key field #2, and then
  153. those persons' mutual order is determined by the alphabetic order of
  154. the names of the persons.
  155.      
  156. 2.4. Field title, explonation and data
  157. --------------------------------------
  158.  
  159.     We can think a field as three different parts which are the field 
  160. title, the field explonation and the field data. In the example data-
  161. base NAME, AGE, AGE GROUP, SEX and WEIGHT are, of course, field 
  162. titles. The field data contains the value of the number field or the
  163. text string of the string field. If you want, you can attach an
  164. explonation to the field. The field explonation should give more
  165. information about the field. For the number field you can also give an
  166. unit which is displayed after the field data on the screen. 
  167.  
  168.  
  169. 3. The user interface
  170. ----------------------------------------------------------------------
  171.  
  172. 3.1. The screen
  173. ---------------
  174.  
  175.     The screen is divided into two parts nearly in the whole program.
  176. These parts are called the message window and the work window. In 
  177. addition many functions open a smaller window above the main screen.
  178.     At the top of the screen there is the message window, and the
  179. program displays messages and questions for the user there. Questions
  180. can be answered depending on the type of the question by ok/no-answer,
  181. by a number or by a text string. Generally you can use also keyboard
  182. for answering. By pressing the <ESC> key you can answer negatively or
  183. cancel the command given earlier. Respectively with the <ENTER> key
  184. you can give a positive answer. If the question asks for a number, you
  185. can reduce and increase the number using the Cursor Left (-) and the
  186. Cursor Right (+) keys.
  187.     In the main program the message window contains also information
  188. about the database, like the current record and the current field.
  189. There are also some gadgets which can be used for moving from one
  190. record to another. 
  191.     The bottom window is called the work window and it is used for
  192. editing records and fields. In the main program there are all fields
  193. of one record and in the field editor there are definition data of one
  194. field. The Diagram function uses this window for showing the diagrams.
  195.  
  196. 3.2. The message window 
  197. -----------------------
  198.     
  199.     In the main program there are two lines of text in the message
  200. window. The lines are displayed as follows:    
  201.  
  202.  Recs: 120 of 230  Flds: 21  B: 26 to 42
  203.  Rec:  4  -  Matching  Fld: 5 - String - KF2 
  204.  
  205.     Two first numbers in the top line tell the number of records. The
  206. latter of these shows the real number and the first one the number of 
  207. available records. As a rule they are equal, but if searhing for the 
  208. record is used, the first number becomes smaller showing the number of
  209. those records which match the search criteria.
  210.     The third number tells the number of fields in one record. The
  211. next two numbers tell the first and the last record of the possible
  212. block. 
  213.     The first section ('Rec: X - Matching') in the bottom line tells
  214. the current record number and information about that, if the record is
  215. matching or unmatching record, when searching is used. If the record
  216. is matching, there is displayed the text 'Matching', and otherwise the
  217. text 'Unmatching' after the record number.
  218.     The rest of the bottom line give information about the current
  219. field. The number in this section shows the current field number and
  220. the text after it tells the field type. At last there is the key field
  221. number ('KFx', where x is ranging from 1 to 8) which is showed only
  222. with the key fields.
  223.  
  224. 3.3. Gadgets of the message window
  225. ----------------------------------
  226.  
  227.     The commands are given in the main program as menu commands which
  228. are explained in the following chapters. There are also 11 arrow
  229. gadgets in the message window in the main program. These gadgets can
  230. be used for moving from one record to another or from one field to
  231. another. They are showed as coarse-featured figures below. 
  232.  
  233.   |<    <<    <    <>    >    >>    >|    H    U    D    E
  234.  
  235.     For every gadget, excluding << and >>, there is also it's own key-
  236. board shortcut which is usable from the Numeric Key pad. In the
  237. following text the gadgets and their shortcuts are explained (first
  238. gadget, then the shortcut, and at last the explonation).
  239.  
  240.   |<    the Numeric Keypad 7  - Go to the first record
  241.   <<                          - Rewind
  242.   <                     NK 4  - Go to the previous record
  243.   <>                    NK 5  - Asks where to go
  244.   >                     NK 6  - Go to the next record
  245.   >>                          - Forward
  246.   >|                    NK 1  - Go to the last record
  247.   H                     NK 9  - Go to the first field      
  248.   U      Cursor Key Up, NK 8  - Go to the previous field 
  249.   D    Cursor Key Down, NK 2  - Go to the next field 
  250.   E                     NK 3  - Go to the last field      
  251.    
  252.     At the left side of the window there is a lift gadget which is
  253. used to scroll the fields when there isn't enough room for all fields
  254. in the same time. 
  255.  
  256.  
  257. 4. Getting started
  258. ------------------
  259.  
  260. 4.1. Running the program
  261. ------------------------
  262.  
  263.     Data Master can be called simply with a double-click when the
  264. mouse pointer is above the icon of Data Master. If you are using
  265. AmigaShell or something like that, you can call the program by opening
  266. the right drawer and running Data Master. For example, as follows:
  267.  
  268.        (stack 32768 <ENTER> (if the program don't work, try this))
  269.        cd DF0:DataMasterDrawer <ENTER> 
  270.        (run) DataMaster <ENTER> 
  271.  
  272.     Then the program opens a window on which the copyright texts are
  273. told with the program version and the registered user. You can go on
  274. by pressing any key.
  275.  
  276. 4.2. Testing
  277. ------------
  278.  
  279.     There are some example data files in the original Data Master 
  280. packet. If you are using the Data Master first time, run the program
  281. as it was told in the part 4.1. Then select the Load Database Menuitem
  282. from the Project Menu. Now you get a list of files in the same drawer
  283. with Data Master. Open the drawer 'Data', and select one of the files
  284. with the '.tdb' identification by pressing two times with the Left
  285. Mouse Button on the filename. After the program has succesfully loaded
  286. the file, you can move in the database by using, for example, the
  287. Arrow Gadgets and the Numeric Keypad.     
  288.  
  289.  
  290. 5. Editing the field data
  291. ----------------------------------------------------------------------
  292.  
  293. 5.1. Basics
  294. -----------
  295.  
  296.     One of the fields showed on the screen is either activated or in 
  297. editing-state. The activated field (the same as the current field)
  298. differs from the others in the fact that the field title is coloured
  299. with white instead of black. Besides this the field number of the
  300. acivated field is showed in the message window. Activation is made by
  301. pressing the Mouse Button on the title of the field or by using the
  302. Arrow Gadgets, the Numeric Keypad or the Cursor Keys.
  303.     One of the fields can also be in editing-state. The title of this
  304. field is coloured with blue. When a field is in editing-state, the
  305. user can change the field data. If you want the field to editing-
  306. state, you have to press the <ENTER> key or press the Mouse Button
  307. on the title of the activated field or on the field data of any field.
  308.  
  309. 5.2. String field
  310. -----------------
  311.  
  312.     If the string field is in editing-state, there is a string gadget
  313. on the place of the field data. Now by changing the string in the 
  314. gadget and by pressing <ENTER> (this is vital), you can change the
  315. field data. 
  316.     When a string field is not in editing-state (but is activated) and
  317. the length of the field data is bigger than the number of columns, you
  318. can scroll the field data using the Cursor Left and the Cursor Right
  319. keys. If it's so, the last letter showed on the screen is coloured
  320. with blue.
  321.  
  322. 5.3. Integer and float fields
  323. -----------------------------
  324.  
  325.     Changing the value of a integer or a floating point field is made
  326. in the same way as changing the data of a string field.
  327.     This can also be done in the other way. First you have to activate
  328. a field. Now by using the Cursor Left and the Cursor Right keys you
  329. can decrease or increase the value of the field. The value is altered
  330. as much as the step value is showing. The step value can be one of the
  331. following values: 1, 10, 100, 1000, 10000, 100 000, 1000 000, 
  332. 10 000 000 or 100 000 000 (for floating point fields also 0.1, 0.01,
  333. 0.001, etc.).
  334.     The step value is set by selecting the Set Step Size Menuitem or 
  335. with the Numeric Keys (not the Numeric Keypad). The menu command asks
  336. for the new value on the message window. This value must be given as
  337. an exponent (for example, if you give 3, the step value will be 10e3=
  338. 1000). Respectively, if you press any Numeric Key from 0 to 8, the
  339. step value will be 10 powered by the corresponding number. If you
  340. press <SHIFT> and any of the Numeric Keys, the step value of float
  341. fields will be 10 powered by minus the corresponding number. Note that
  342. if you want the step value to be 1, press 0 (10e0 = 1). 
  343.      
  344. 5.4. Type and boolean fields
  345. ----------------------------
  346.  
  347.     Altering the data of the type or boolean field can be made in two
  348. ways. The easiest way is to use the Cursor Left and the Cursor Right
  349. keys to select the alternative text, when a field is activated (not in
  350. editing-state).
  351.     If the field is in editing-state, there is a list of the alter-
  352. natives on the place of the field data. Now you can scroll the list
  353. by using the Cursor Left and the Cursor Right keys. You can select a
  354. new alternative text by pressing <ENTER> or by pressing the Left Mouse
  355. Button, when the pointer is pointing to the text in question. 
  356.  
  357. 6. Handling records
  358. ----------------------------------------------------------------------
  359.  
  360. 6.1. Basics
  361. -----------
  362.  
  363.     You can move between records by using the Numeric Key Pad and the
  364. Arrow Gadgets. The commands for handling records can be called from
  365. the Edit and the Block Menus. The Edit Menu includes commands usable
  366. for handling a single record and the Block Menu commands for handling 
  367. record blocks. The commands in the Block Menu are quite simiral to 
  368. those in the Edit Menu, so only the Edit Menu is explained here 
  369. completly.
  370.  
  371. 6.2. Insert
  372. -----------
  373.  
  374.     By using this command you can add a new record between old
  375. records. The number of the records will be then increased by one and
  376. the record number of the new record is same as the record number of
  377. the old current record.
  378.  
  379. 6.3. Delete
  380. -----------
  381.  
  382.     The Delete Menuitem should be called if you want to delete the 
  383. current record. After the command is called, the number of the records
  384. is reduced by one and you can't get the deleted record back in any
  385. way.
  386.  
  387. 6.4. Change
  388. -----------
  389.  
  390.     This function asks at first for the record number of the record
  391. with which the current record will be changed. After this, the places
  392. of these two records will be changed together.
  393.  
  394. 6.5. Move
  395. ---------
  396.  
  397.     This command asks for the place where the current record should be
  398. moved. Then the current record will be moved to the new place and it 
  399. will be deleted from the old place. Note that by using this function
  400. you can't delete any record, just the order of the records is changed.      
  401.    
  402. 6.6. Copy
  403. ---------
  404.  
  405.     This function can be used for copying the field data of the
  406. current record to another record whose number is asked by the
  407. function. Note that the field data of the target record are deleted.
  408.  
  409. 6.7. Clear
  410. ----------
  411.  
  412.     If you select the Clear Menuitem, all fields of the current 
  413. record are cleared. The field data of a string field is totally
  414. deleted and the value of a number field is set to zero (or to the
  415. minimum or to the maximum value). The field data of a type field or a
  416. boolean field is set to point at the first alternative text.
  417.  
  418. 6.8. Number of Records
  419. ----------------------
  420.  
  421.     This command asks for the new number of records. If the new number
  422. is smaller than the old, some records are deleted. If the number of
  423. the records has been increased, all new records are cleared in the
  424. same way as the Clear function does.
  425.  
  426. 6.9. Delete Unedited Records
  427. ----------------------------
  428.  
  429.     This function deletes all those records which are not edited by
  430. the user after the memory allocation or after the use of the Clear
  431. function.
  432.  
  433. 6.10. The Block Menu
  434. -------------------- 
  435.  
  436.     The block can be marked or unmarked by using the two first menu-
  437. items in the Block Menu. The Mark Block function sets the first and
  438. the last record of the block. When it is called first time, the
  439. function sets the current record to be the first record of the block.
  440. Respectively at next time the current record becomes the last record
  441. of the block. If the Clear Block Menuitem is selected, the block is
  442. unmarked.  
  443.     When the block is correctly marked, the user can use also the
  444. other functions located in the Block Menu. These commands are nearly
  445. simiral to the functions located in the Edit Menu and they differ from
  446. the Edit Menu functions in the fact that they affects for the record
  447. block insted of a single record. When using these functions, remember
  448. that if the block is copied, moved or changed with another block, any 
  449. record of the target block is allowed to be inside the source block.
  450.  
  451.  
  452. 7. Sorting and searching
  453. ------------------------
  454.  
  455. 7.1. Sorting
  456. ------------
  457.  
  458.     If you want to sort the records in alphabetic order, you have to
  459. set the key fields before sorting. Based on these fields the program
  460. then sorts the database. The key fields can be set by using the Set
  461. Key Fields command in the Special Menu. At first it asks for the
  462. number of the key fields which can range from zero to eight. Then the
  463. function asks the field number of every key field.
  464.     After the key fields are defined, you can sort the records by
  465. using the Sort Incremental Menuitem or the Sort Decremental Menuitem.
  466. The first one sorts the database in alphabetic order and the latter in
  467. inversed alphabetic order.
  468.  
  469. 7.2. Searching for the specified record
  470. ---------------------------------------
  471.  
  472. 7.2.1. Edit Search Criteria (Filter)
  473. - - - - - - - - - - - - - - - - - - -
  474.  
  475.     If you want to search for the specified record from the database,
  476. you have to at first define the search criteria (in this manual the 
  477. search patterns means the same as the search criteria). The user can
  478. define the criteria for all fields, but it's enough if a criterion is
  479. defined at least for one field. This can be done with the Edit Search
  480. Criteria function callable from the Search Menu.          
  481.     This function opens a screen whose work window is used for showing
  482. the field titles and the search patterns. With the field title in the
  483. same line there is a corresponding search pattern.
  484.     You can clear the search criteria by clicking on the Clear Gadget
  485. or the ClearAll Gadget. If there are more fields than rows in the work
  486. window, the fields can be scrolled with the Lift Gadget placed at the
  487. left side of the message window. When the search patterns are ready,
  488. you can approve the criteria by clicking the OK Gadget. If you want to
  489. cancel the patterns, click on the Cancel Gadget.     
  490.     The search criteria are different depending on the type of the
  491. field. The criteria of the number fields are simple mathematical
  492. formulas and the criteria of other fields are mixed text and wild
  493. cards.  
  494.  
  495. 7.2.2. The search criteria of string, type and boolean fields
  496. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  497.  
  498. In the following table is a list of the wild cards:
  499.  
  500.      *          = any character or any string or nothing
  501.      ?          = any character
  502.      ~          = anything but
  503.      [abc]      = any character of a, b and c
  504.      (aa|bb|cc) = any string of aa, bb and cc
  505.                   (| (or) = <SHIFT> + <\> in the keyboard)     
  506.  
  507.     A search pattern can contain ordinary text and besides text many
  508. kind of combinations of the wild cards. The Wild card ~ can be
  509. attached to the two lowest wild cards. This means that ~[abc] is a
  510. possible combination, and it matches any character that is not a, b or
  511. c. If you are using the combination ~(aa|bb|cc), remember that the
  512. lengths of aa, bb and cc must be same. Note also that after * there
  513. can't be any of the following wild cards: *, ?, ~. Below is showed
  514. example search patterns and fields which match or not match the
  515. criteria.
  516.  
  517.  CRITERION         MATCH                    DO NOT MATCH
  518.  ---------------------------------------------------------------------
  519.  *house            The red house            Red houses
  520.                    house                    house is beautiful 
  521.  C*r               Computer                 In Computer
  522.  ?isk              Disk                     A Disk             
  523.                    disk                     isk
  524.  [MD]ark           Mark                     Bark
  525.                    Dark                     MDark
  526.  (one|three)       one                      onethree
  527.                    three                    tone
  528.  ~[ab]             c                        a
  529.                    g                        b
  530.                    t                        cg
  531.  ~(NIGH|righ)t     abcdt                    right
  532.                    night                    NIGHT
  533.                    fight                    fit
  534.  
  535. 7.2.3. The search criteria of integer and float fields
  536. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  537.  
  538.     The criteria of a number field are simple mathematical formulas.
  539. Note that in these formulas you can't use paranthesis'. Remember also
  540. that some of the operators need only and just only one argument
  541. number, but the others need respectively two arguments. Available 
  542. operators are in the following list:
  543.  
  544.     = x      equal to x
  545.     > x      greater than x
  546.     >= x     greater than or equal to x
  547.     < x      lower than x
  548.     <= x     lower than or equal to x
  549.     x << y   greater than x and lower than y
  550.     x <=< y  greater than x and lower than y or equal to x or equal
  551.              to y
  552.     x >> y   lower than x or greater than y
  553.     x >=> y  lower than x or greater than y or equal to x or equal
  554.              to y
  555.     |        or     
  556.  
  557.     Below is showed numbers between -9 and 9 and some example search
  558. patterns. Those numbers which match are marked with *.
  559.  
  560.                          - - - - - - - - -   + + + + + + + + + 
  561.                          9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9       
  562.  
  563. =-4                                * 
  564. <=-3                     * * * * * * * 
  565. >0 | =-2 | =-8             *           *     * * * * * * * * *     
  566. >=5 | -9<<-5               * * *                     * * * * *   
  567. -3<=<3                               * * * * * * *  
  568. -3>>3                    * * * * * *               * * * * * *
  569. -8>=>8 | 0<=<2 | =-6     * *   *           * * *           * *                                  
  570.      
  571.                          9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9       
  572.                          - - - - - - - - -   + + + + + + + + + 
  573.                      
  574. 7.2.4. Searching functions
  575. - - - - - - - - - - - - - -
  576.  
  577.     After you have defined the search patterns using the Edit Search 
  578. Criteria function, you can separate the matching records from the
  579. others by switching the Show Matching Records Flag in the Search Menu
  580. on. Now you can't look or handle the unmatching records and also the
  581. printing functions ignore those records. Note that when this flag is
  582. on, there are some menu commands that don't work at all. Now if you
  583. want to use all records again, switch the Show Matching Records Flag
  584. off.
  585.     If this flag is on and you have altered the matching records after
  586. switching, you can re-check these records by using the Check Again
  587. command.
  588.     You can inverse the search criteria by selecting the Inverse
  589. Search Criteria Menuitem. After the call of this function, all
  590. matching records become unmatching and vice versa.
  591.     When the search criteria are defined, you can delete all those
  592. records that didn't match the patterns with the Delete Unmatching
  593. Records command.
  594.  
  595. 7.3. Searching for a text string 
  596. --------------------------------
  597.  
  598.     You can also search for a single text string from the database.
  599. This can be done by using the Search String command in the Search
  600. Menu. This function searches all matches of the string starting from
  601. the current field of the current record. After searching, the program
  602. displays that record where the first match was located. If there was 
  603. many matches, you can look for them by using the Search Next String
  604. function.
  605.  
  606.  
  607. 8. Disk operations
  608. ----------------------------------------------------------------------
  609.  
  610. 8.1. File formats
  611. -----------------
  612.  
  613.     The user can create two different kind of data files by using this
  614. database program. The other is used to save the whole database and the
  615. other to save only the field definitions.
  616.     When saving the whole database, the program attach the '.tdb' 
  617. identification to the file name. This file format is not compatible
  618. with any other database file format used by any database program.
  619.     If only the field definitions are saved, the program uses the
  620. '.fld' identification in the file name. Only the Field Editor uses
  621. this file format.
  622.     Besides these two main file formats there are two additional file 
  623. format types. The Save ASCII function and the Form Editor create files
  624. with the '.adb' identification, but these files are actually ordinary
  625. ASCII files. In the Form Editor you can also save the form data by
  626. using the Save Form Data command. The files made by this command have 
  627. the '.form' identification in their names. 
  628.  
  629. 8.2. Load Database
  630. ------------------
  631.  
  632.     All loading and saving functions (if KickStart is 2.0 or greater)
  633. open a window above the main screen. At the middle of the window there
  634. is a box where is a list of files and drawers. With a double-click you
  635. can select a file from the list, and the selected file is then loaded
  636. automatically. At the right side of the box there is the File Lift
  637. Gadget which can be used to scroll files in the box. At the top of the
  638. window there are two string gadgets; in the upper one there is the
  639. title of the drawer and in the lower one the title of the selected
  640. file.
  641.     Below all these there are three command gadgets. By clicking the
  642. Parent Gadget you can move in the root directory one directory back.
  643. If you want to exit the requester without loading anything, press the
  644. Cancel Gadget. To load the file showed in the File String Gadget, you
  645. have to click on the Load Gadget.
  646.     When you are going to load a database from the disk, remember
  647. that you can only load correct files with the '.tdb' identification.
  648. The loading routine itself can be called by selecting the Load
  649. Database Menuitem from the Project Menu. 
  650.     
  651. 8.3. Save Database
  652. ------------------
  653.  
  654.     There are two functions for saving the database in the main
  655. program. The Save Database command, obtainable from the Project Menu,
  656. saves the database using the old filename. If the filename is not 
  657. given, this command is similar to the Save As function.
  658.     The Save As function opens a window familiar with the Load Data-
  659. base function. The only difference is the Load Gadget which is re-
  660. placed with the Save Gadget in the saving routines.  
  661.  
  662. 9. Printing
  663. ----------------------------------------------------------------------
  664.  
  665. 9.1. Show
  666. ---------
  667.  
  668.     If you select the Show Menuitem from the Show Menu, the program
  669. shows the database on the screen one record after another. This
  670. function opens a window where there are six boolean, eight number and
  671. two command gadgets. 
  672.     As it has been mentioned, there are two command gadgets which are
  673. titled OK and Cancel. By clicking the Cancel Gadget the program
  674. returns to the main program and with the OK Gadget the program clears
  675. the screen and shows the database on the whole screen. The database
  676. can be scrolled using the Cursor Keys, the Numeric Keypad and the Left
  677. Mouse Button. You can exit the Show function by pressing the <ESC>
  678. key. The boolean and number gadgets are explained below.
  679.  
  680.  First Record               NUMBER
  681.     The first record which is showed.
  682.  
  683.  Last Record                NUMBER
  684.     The last record which is showed.
  685.  
  686.  First Field                NUMBER
  687.     The first field of every record which is showed.
  688.  
  689.  Last Field                 NUMBER
  690.     The last field of every record which is showed.
  691.  
  692.  Space Record               NUMBER
  693.     The number of empty lines between records.
  694.  
  695.  Space Field                NUMBER
  696.     The number of empty lines between fields.
  697.  
  698.  Max Length                 NUMBER
  699.     The maximum length of one line.
  700.  
  701.  Max Title Len              NUMBER 
  702.     The maximum length of the field title.
  703.  
  704.  Field Title                BOOLEAN FLAG
  705.     Show the field titles.
  706.  
  707.  Field Unit                 BOOLEAN FLAG
  708.     Show the field units.  
  709.  
  710.  Field Number               BOOLEAN FLAG
  711.     Show the field number in the field title.
  712.  
  713.  Record Title               BOOLEAN FLAG
  714.     Show the record title.
  715.  
  716.  Database Title             BOOLEAN FLAG
  717.     Show the database title.
  718.  
  719.  Database Explonation       BOOLEAN FLAG
  720.     Show the field explonation texts at the end.    
  721.  
  722. 9.2. Print
  723. ----------
  724.  
  725.     This function opens a window equal to the window used by the Show
  726. function. After you have set the boolean and number gadgets, you can
  727. start to print by clicking the OK Gadget if the printer is ready for
  728. this. The program uses AmigaDOS for printing, so if you want to change
  729. the Printer Preferences, do it by using Workbench or AmigaDOS.
  730.  
  731. 9.3. Save ASCII
  732. ---------------
  733.  
  734.     With this function you can save the database as an ASCII file. At
  735. first the function opens same kind of window as the Show function. Now
  736. after the OK Gadget is clicked, the program opens a new window which
  737. is a file requester window similar to the window opened by the Save 
  738. Database function. The Save ASCII function creates ASCII files with
  739. the '.adb' identification.
  740.  
  741. 9.4. Diagram
  742. ------------
  743.  
  744.     The Diagram function opens a screen which is used to show the
  745. records as graphic diagrams. At the top of the screen there are five
  746. number, one boolean and one command gadgets. These are explained in
  747. the following text:
  748.  
  749.  Min                        NUMBER
  750.     The miminum value of the scale.
  751.  
  752.  Max                        NUMBER
  753.     The maximum value of the scale.
  754.  
  755.  Step Size                  NUMBER
  756.     The step size of the scale (the default value = (Max-Min)/10).
  757.  
  758.  Title Length               NUMBER
  759.     The maximum length of the record title (= the field data of the
  760.     main field).   
  761.     
  762.  Field                      NUMBER
  763.     The field number of the field used in comparision.
  764.  
  765.  Sort                       SWITCH   
  766.     By clicking on this gadget you can change the sorting status of
  767.     the records (Original Order -> Incremental Sort -> Decremental
  768.     Sort -> Original Order).      
  769.   
  770.  AddNumbs                   BOOLEAN FLAG 
  771.     If this flag is on, the Diagram function shows also the numeric
  772.     value of the field used in comparision.  
  773.  
  774. 9.5. Form Editor
  775. ----------------
  776.  
  777. 9.5.1. The screen
  778. - - - - - - - - - 
  779.  
  780.     This editor can be used for making many kind of forms. The places
  781. of every field's title and data in the form and the length of the
  782. title and data are separately determined by the user. On the basis of
  783. the form data you can show the database on the screen, save it as an
  784. ASCII file or send it to the printer. So we could say, that this
  785. editor is much more advanced than the printing functions located in
  786. the main program.  
  787.     The screen is divided into two parts in the Editor. The upper one
  788. is used for showing and changing the values of the form data. There is
  789. also a lift gadget which can be used to scroll the work window
  790. vertically. You can also scroll it horizontally, which is possibly
  791. with the Cursor Keys and the Numeric Keypad. 
  792.     The messages send by the Editor to the user are displayed on the
  793. screen title bar. When there are no messages, you can see the text
  794. 'ScX: x ScY: y VisW: w VisH: h' on the title bar. Letters x and y in-
  795. dicate the left edge and the top edge of the visible part of the form.
  796. Letters w and h mean the width and the height of the visible part in
  797. characters.
  798.  
  799. 9.5.2. Placing the field in the form
  800. - - - - - - - - - - - - - - - - - - -
  801.  
  802.     At the upper window there are eight number and one boolean gadget
  803. with the lift gadget. The functions of these are explained below.
  804.  
  805.  Field                      NUMBER
  806.     The field number of the field whose location and length of the
  807.     data and the title are displayed.
  808.  
  809.  (Field)                    BOOLEAN FLAG
  810.     (At the left side of the previos gadget)     
  811.     If this flag is on, the current field is a part of the form.
  812.  
  813.  X and Y                    NUMBER
  814.     The coordinates of the field data. These coordinates can also be
  815.     outside that part of the form which is visible (X-max = 255 and
  816.     Y-max = 999).
  817.  
  818.  Width and Height           NUMBER
  819.     The size of the field data. These values can be greater than the
  820.     size of the visible part of the form.
  821.  
  822.  TitleX and TitleY          NUMBER                        
  823.     The coordinates of the field title.
  824.  
  825.  TitleLen
  826.     The maximum length of the field title.
  827.  
  828. 9.5.3. Flags
  829. - - - - - - -
  830.  
  831.     In the Flag Menu there are some boolean flag items and three
  832. command items which are used to change some values. These items are
  833. explained on this part.
  834.  
  835.  Field Unit                 BOOLEAN FLAG
  836.     Show the field units. 
  837.  
  838.  Field Number               BOOLEAN FLAG
  839.     Show the field numbers in the field titles.
  840.  
  841.  Database Title             BOOLEAN FLAG
  842.     Show the database title.
  843.  
  844.  Database Explonation       BOOLEAN FLAG
  845.     Show the database explonation at the end.
  846.  
  847.  Split Words                BOOLEAN FLAG
  848.     If there are more than one line in a string field, you can 
  849.     determine with this flag, if it's permitted to split words to two
  850.     different lines. 
  851.  
  852.  Delete Empty Lines         BOOLEAN FLAG
  853.     Ignore lines which are blank, when printing or showing the data-
  854.     base. This flag don't refer to those empty lines which are ordered
  855.     using the Record Space command.
  856.  
  857.  Field Titles Before Recs   BOOLEAN FLAG
  858.     If this flag is on, the field titles are printed only once and
  859.     before the data of all records. This option can be used to make 
  860.     lists like the following list:
  861.        
  862.        Country:         Population:         Capital:
  863.        
  864.        Finland          4984000             Helsinki
  865.        Sweden           8600000             Stockholm
  866.        Norway           4242000             Oslo   
  867.     
  868.     Load the example database 'EuropeCountries.tdb' and call the Form
  869.     Editor function for more information.  
  870.  
  871.  Set First Record           COMMAND
  872.     This command asks for the record number of the first record which
  873.     should be printed.
  874.  
  875.  Set Last Record            COMMAND
  876.     This function asks for the last record which should be printed. 
  877.  
  878.  Set Record Space           COMMAND
  879.     Asks for the number of empty lines between records.
  880.  
  881. 9.5.4. The Project Menu
  882. - - - - - - - - - - - -
  883.  
  884.     When the form is defined, the user can show the database on the
  885. screen using the Show function placed in the Project Menu. Remember
  886. that when the database is large, it can take quite a long time while
  887. the program is making the print-out. Also large databases need a lot
  888. of memory, and it can be possible, that the showing doesn't work un-
  889. less you make it in smaller parts (by changing the First Record and
  890. the Last Record values).
  891.     If you want to print the database for the printer, select the
  892. Print Menuitem, and the program does this provided that the printer
  893. and AmigaDOS are ready for printing. If you want to change the Printer
  894. Preferences, do it with AmigaDOS.
  895.     The database can be saved as an ASCII file by calling the Save
  896. ASCII function. This function opens a window similar to the window
  897. which is opened by the Save Database function.
  898.     If you select the Save Form Data Menuitem, the program saves the
  899. form data, containing information about the places and sizes of the
  900. fields, to the disk. To the filename is attached the '.form'
  901. identification. Correspondingly you can load a form data file from the
  902. disk using the Load Form Data command.
  903.     The Editor can be leaved by selecting the Exit Menuitem.
  904.    
  905.  
  906. 10. Field Editor
  907. ----------------------------------------------------------------------
  908.  
  909. 10.1. Basics
  910. ------------
  911.  
  912.     When you are making a new database, you have to at first determine 
  913. field definitions. This can be done by using the Field Editor which is
  914. explained in this chapter.
  915.     As mentioned earlier there are five different field types which
  916. are string, integer, float, type and boolean. These are completly de-
  917. scribed in chapter 2.2. In the Editor the user have to determine exact
  918. field definitons which contain field type, title, explonation text,
  919. maximum length of the text, minimum and maximum values, unit and the
  920. alternative texts. However, none of the field types demands all these
  921. information. The maximum number of defined fields is 256, so it should
  922. be enough for larger databases too.   
  923.    
  924. 10.2. The screen and the message window
  925. ---------------------------------------
  926.  
  927.     The screen in the Editor is divided into two part which are the
  928. message window and the definition (work) window. The upper message
  929. window is used for showing the messages sent to the user, and there
  930. are two number gadgets. The definition window contains information
  931. about one field at a time.
  932.     At the bottom of the message window there are two number gadgets
  933. which are titled 'Number of Fields' and 'Field'. The first one of
  934. these tells the number of defined fields. The latter one shows the
  935. field number of the current field whose definitions are displayed at
  936. the definition window.
  937.  
  938. 10.3. Menu commands
  939. -------------------
  940.  
  941.     There are two menus in the Editor. These are the Project Menu and
  942. the Edit Menu. The first one contains general commands, like file
  943. commands, and the latter one functions for handling fields.
  944.     If you want help about the Editor, select the Help Menuitem from
  945. the Project Menu. In the same menu there is the menuitem Load which
  946. activates the loading routine. By using the Save command and the Save
  947. As command you can save the field definitions to the disk as a '.fld' 
  948. file. Both, the Load and the Save As, open a window which is also used
  949. by the file functions of the main program. 
  950.     You can generate and look a list of the fields by calling the Show
  951. Fields function which opens a full-screen window where you can scroll
  952. the list using the Cursor Keys or the Numeric Keypad. Press the <ESC>
  953. key for exit.
  954.     If you are not happy with the field definitions, return to the
  955. main program by selecting the Cancel Menuitem. In the main program
  956. there hasn't happened any changes and you can continue editing the old
  957. database. But if you want to use the field definitions, leave the
  958. Editor by calling the OK command. Now in the main program a new data-
  959. base will be created (however, you can copy the old one to the new
  960. one). 
  961.     With the Delete command, which can be called from the Edit Menu,
  962. you can delete the current field. A new field can be added to the list
  963. by calling the Insert function. The Move function moves the current
  964. field into a new position and the Change function changes the places
  965. of two fields. If you select the Copy Menuitem, the definitions of the
  966. current field are copied to another field. You can clear the 
  967. definitions of one field by using the Clear command, and by calling
  968. the Clear All command this is done for the whole definition table.
  969.     The fields can be sorted for the alphabetic order by calling the 
  970. Sort Incremental function. The same inversed can be done with the Sort
  971. Decremental function. 
  972.  
  973. 10.4. The definition window
  974. ---------------------------
  975.  
  976.     In the lower window there are nine gadgets which contain
  977. information about one field. None of the field types demands all these
  978. gadgets filled, and the title of a gadget is coloured with white when
  979. the corresponding piece of information is necessary and with black
  980. when not. Below are told the functions of all gadgets.
  981.  
  982. <Gadget                     Gadget Type (Field types)>
  983.                       
  984.  Type                       SELECTION (All field types)
  985.     The type of the field can be string, integer, float, type or
  986.     boolean (see chapter 2.2).
  987.  
  988.  Title                      STRING (All field types)
  989.     The title of the field (currently the maximum length is 13 
  990.     characters).
  991.  
  992.  Explonation                STRING (All field types)
  993.     The explonation text which can be up to 255 characters length
  994.     gives more information about the field than the title.
  995.  
  996.  Text Length                NUMBER (String, type and boolean)
  997.     The maximum length of the text.
  998.  
  999.  Min and Max                NUMBER (Integer and float)
  1000.     The minimum and the maximum values of the field. If you don't want
  1001.     the limitation, write 'N' to the gadget and press <ENTER>, and
  1002.     there appears the text 'No Min' or 'No Max' in the gadget.  
  1003.  
  1004.  Number of Alts             NUMBER (Type, for boolean default=2)
  1005.     With this gadget you can determine the number of the alternative
  1006.     texts. There can be up to 256 alternatives, but remember that
  1007.     when the type is boolean, the number of alternatives is always
  1008.     two.
  1009.  
  1010.  Alt.Text No.               NUMBER/STRING (Type and boolean)
  1011.     Using this gadget pair you can give the alternative texts. By 
  1012.     using the number gadget select the text number. Now edit the
  1013.     corresponding alternative text in the string gadget. When you
  1014.     press <ENTER> in the string gadget, the program automatically goes
  1015.     to the next alternative text. 
  1016.  
  1017.  Unit                       STRING (Integer and float)
  1018.     The unit of a field can be, for example, the unit of the
  1019.     physical quantity, like m (metre) or kg (kilogramm).
  1020.  
  1021. 10.5. How to define a database?
  1022. -------------------------------
  1023.  
  1024.     In this chapter is told in single phases, how you can define a new
  1025. database.
  1026.    
  1027.  1. Call the Data Master (see chapter 4.1).
  1028.  2. Select the Field Editor Menuitem from the Project Menu.
  1029.  3. Type the number of the fields in the Number of Fields Gadget and
  1030.     press the <ENTER> key. Now there is the first field of the data-
  1031.     base on the screen and you can start editing it as below is
  1032.     advised.
  1033.  4. Select the type of the field with the Type Gadget. The possible
  1034.     types are, like earlier, titled 'String', 'Integer', 'Float',
  1035.     'Type' and 'Boolean'. 
  1036.  5. Enter the field title in the Title Gadget and press <ENTER>
  1037.  6. Write the field explonation in the Explonation Gadget and press
  1038.     <ENTER>.
  1039.  7. If the type is string, set the maximum length of the field data
  1040.     by using the Text Length Gadget.
  1041.  8. If the type is integer or float, ...
  1042.     8.1. Write the minimum and the maximum values in gadgets Min and
  1043.          Max and confirm with the <ENTER>. If you don't want the
  1044.          limitation, type 'N' in the gadget. Now on this gadget
  1045.          appears a text 'No Min' or 'No Max'.
  1046.     8.2. Type the field unit in the Unit Gadget.
  1047.  9. If the type is type or boolean, ...
  1048.     9.1. Set the maximum length of one piece of text with the Text
  1049.          Length Gadget.
  1050.     9.2. Determine the number of the alternatives by using the Number
  1051.          of Alts Gadget if the field type is type. 
  1052.     9.3. Select one of the alternative texts with the Alt.Text No
  1053.          Gadget.
  1054.     9.4. Write the respective text in the string gadget at the right
  1055.          side of the Alt.Text No Gadget and press the <ENTER> key.
  1056.     9.5. Move to the next alternative text (go back to section 9.3),
  1057.          until all texts are given.
  1058.  10. Select the next field with the Field Gadget, and go to section 4.
  1059.  11. After you have defined all fields correctly (remember to confirm
  1060.      definitions with the <ENTER> key), select the OK Menuitem from
  1061.      the Project Menu, and the program returns to the main program.
  1062.  12. Now the program asks for the estimated number of records, and 
  1063.      then the program allocates memory for these.
  1064.  13. If there wasn't enough memory, the program returns to the section
  1065.      12.
  1066.  14. If there was an old database before calling the Editor, the
  1067.      program asks if you want to copy the old database to the new
  1068.      database. If you don't want or if there wasn't any old database, 
  1069.      jump to the section 16.
  1070.  15. Now you are asked if you want that the program copies the old
  1071.      database to the new one considering the field titles. If you
  1072.      answer negatively, this is done so that the data of the old field
  1073.      number x is copied to the new field number x. Otherwise, the 
  1074.      program copies only those fields that have same titles in both,
  1075.      old and new, databases.
  1076.  16. Now the definitions should be ready, and you can start to edit
  1077.      the records itselves...
  1078.  
  1079. 10.6. How to change the definitions?
  1080. ------------------------------------
  1081.  
  1082. 10.6.1. Basics
  1083. - - - - - - - -
  1084.  
  1085.     It is usual that when the user have defined and edited a database,
  1086. it becomes necessary to change the field definitions or the order of
  1087. the fields.
  1088.     If you want to change the definitions, you have to at first load
  1089. the database in question. After this, call the Field Editor and change
  1090. the field definitions as explained in this chapter earlier. When you
  1091. have finished changing, return to the main program by selecting the OK
  1092. Menuitem.
  1093.     Now the program asks for the number of records; use the same
  1094. number as used with the old database. After this you are asked if you
  1095. want to keep the data of the old database; answer positively. At last
  1096. Data Master wants to know if you want to copy the fields considering
  1097. the field titles. After this question has been answered the program
  1098. proceeds the transfer of data from the old database to the new one.
  1099.  
  1100. 10.6.2. Changing field titles and limitations
  1101. - - - - - - - - - - - - - - - - - - - - - - -
  1102.  
  1103.     You can change field titles, explonations and limitatios following
  1104. the instructions on the previous part. You have to just remember that  
  1105. you should't change the order of the fields and that you have to
  1106. answer the last question negatively. With some restrictions you can
  1107. also change the type of the field so that the field data is saved
  1108. (any type -> string, integer <-> float, boolean -> type).
  1109.  
  1110. 10.6.3. Changing the order of the fields
  1111. - - - - - - - - - - - - - - - - - - - - 
  1112.  
  1113.     Also changing of the order can be made using the instructions 
  1114. explained on the part 10.6.1. This time you have to remember that you
  1115. are not permitted to change the field titles and that you have to give
  1116. a positive answer for the last question. If you want, you can also re-
  1117. move old fields or define new ones by using this same method.
  1118.  
  1119. 11. Other functions
  1120. ----------------------------------------------------------------------
  1121.  
  1122. 11.1. Settings
  1123. --------------
  1124.  
  1125.     The settings or the preferences, containing information like the
  1126. colours and the alphabets, can be changed by using the Settings
  1127. function. This function opens a window with some gadgets. These are
  1128. explained below.
  1129.     
  1130.  Alphabet                   SELECTION/STRING
  1131.     With this gadget pair you can set the alphabet. There are some
  1132.     default alphabet strings in the memory, but you can edit any of
  1133.     them so that you can sort the database made in any language
  1134.     correctly. With the selection gadget you can take any of the
  1135.     default strings to the string gadget. You can edit the current
  1136.     string by clicking on the gadget and by writing a new string. If
  1137.     you want that two letters have the same precedence, type an
  1138.     equation sign between them (like 'A=a B=b C=c ...').
  1139.  
  1140.  Colours                    PROPORTIONAL (4*3=12 gadgets)
  1141.     You can change the screen colours by using the proportional
  1142.     gadgets. There are three colour component (R=Red, G=Green and B=
  1143.     Blue) gadgets for all four colours.
  1144.  
  1145.  ShowUnit                   BOOLEAN
  1146.     If this is on, the possible unit is displayed on the main screen.
  1147.  
  1148.  ShowFNum                   BOOLEAN
  1149.     Attach the field number to the field title. 
  1150.   
  1151.  Cancel                     COMMAND
  1152.     Exit the Settings function.
  1153.  
  1154.  Use                        COMMAND
  1155.     Exit the Settings function and use new preferences.
  1156.  
  1157.  Save&Use                   COMMAND
  1158.     Exit the Settings function and save and use new preferences.
  1159.  
  1160.  Default                    COMMAND
  1161.     Return the original preferences.
  1162.  
  1163. 11.2. Edit Title Page
  1164. ---------------------
  1165.  
  1166.     The title page contains information about the database, like the
  1167. title, the author, the copyright text, the version, the first version
  1168. and if given the comment. This page is used by the showing and
  1169. printing functions if the Database Title Flag is on.    
  1170.     You can change this data by selecting the Edit Title Page Menu-
  1171. item. This function opens a window which is familiar with the window
  1172. used by the Edit Search Criteria function. When you have entered all
  1173. data, press the OK gadget. If you want to restore the old data, press
  1174. the Cancel gadget.
  1175.  
  1176. 11.3. Edit Explonation Page
  1177. ---------------------------
  1178.  
  1179.     Normally the field explonations are given already in the Field
  1180. Editor, but if you want, you can edit them afterwards by using the
  1181. Edit Explonation Page function.
  1182.     Also this function uses same kind of window like the Edit Search
  1183. Criteria function, so this is enough about this function.
  1184.  
  1185. 11.4. Reset
  1186. -----------
  1187.   
  1188.     If you want to clear all system (Data Master, not AmigaDOS)
  1189. variables, call the Reset function. For example, after the use of the
  1190. function the first record becomes the current record and the first
  1191. field of it becomes the current field. The function also redraws the
  1192. screen, so it's useful to call this function if something have messed
  1193. the screen.
  1194.  
  1195. 11.5. Status
  1196. ------------
  1197.  
  1198.     This command opens a window which is used to display some system
  1199. variables, like the number of records, the current record and the
  1200. block status.
  1201.  
  1202. 11.6. Set Main Field
  1203. --------------------
  1204.  
  1205.     With this menu command you can set for the main field any one of
  1206. the fields. The main field differs from the others on the screen in
  1207. the fact that the field title is underlined. The purpose of the main
  1208. field is that, that the record can be recognized by the main field. 
  1209.  
  1210.  
  1211. Appendices
  1212. ----------------------------------------------------------------------
  1213.  
  1214. Appendix 1 - Gadgets and Menus in the main program
  1215. --------------------------------------------------
  1216.  
  1217.   The Arrow Gadgets
  1218.   - - - - - - - - - 
  1219.   |<    the Numeric Keypad 7  - Go to the first record
  1220.   <<                          - Rewind
  1221.   <                     NK 4  - Go to the previous record
  1222.   <>                    NK 5  - Asks where to go
  1223.   >                     NK 6  - Go to the next record
  1224.   >>                          - Forward
  1225.   >|                    NK 1  - Go to the last record
  1226.   H                     NK 9  - Go to the first field      
  1227.   U      Cursor Key Up, NK 8  - Go to the previous field 
  1228.   D    Cursor Key Down, NK 2  - Go to the next field 
  1229.   E                     NK 3  - Go to the last field      
  1230.   
  1231.  
  1232.  The Project Menu
  1233.  - - - - - - - - -
  1234.  New Database               n - Open a new database
  1235.  Load Database              l - Load the database from the disk drive
  1236.  Save Database              s - Save the database with the old name
  1237.  Save As                    a - Save the database with the new name
  1238.  Field Editor               f - Call the Field Editor
  1239.  Settings                   p - Change the program preferences
  1240.  Help                       y - Show this text
  1241.  About                      A - Tell about the program and the author
  1242.  Quit                <ESC>, q - Exit the program  
  1243.  
  1244.  The Edit Menu
  1245.  - - - - - - -
  1246.  Insert                     i - Insert a new record
  1247.  Delete                     d - Delete the current record
  1248.  Change                     h - Change the places of two records
  1249.  Move                       m - Move the current record to a new
  1250.                                 position
  1251.  Copy                       c - Copy the record data to another record
  1252.  Clear                      j - Clear the record
  1253.  Number of Records          U - Change the Number of the Records
  1254.  Delete Unedited Records    E - Delete the unused/unedited records
  1255.  
  1256.  The Block Menu
  1257.  - - - - - - - -
  1258.  Mark Block                 b - Set the block begin/end
  1259.  Unmark Block               B - Unset the block
  1260.  Delete Block               D - Delete the block records
  1261.  Change Block               H - Change the block with another one
  1262.  Move Block                 M - Move the block to a new position
  1263.  Copy Block                 C - Copy the block records to another
  1264.                                 block
  1265.  Clear Block                J - Clear the block records
  1266.  
  1267.  The Search Menu
  1268.  - - - - - - - - 
  1269.  Search String              S - Search for a string
  1270.  Search Next String         N - Go to the next string searched earlier
  1271.  Edit Search Criteria       e - Change the search criteria
  1272.  Show Matching Records      r - Show only the matching records (or 
  1273.                                 'Show all records', a switch item)
  1274.  Check Again                R - Check the matching records again
  1275.  Inverse Search Criteria    v - Inverse the search criteria 
  1276.  Delete Unmatching Records  u - Delete the unmatching records
  1277.  
  1278.  The Show Menu
  1279.  - - - - - - -
  1280.  Print                      P - Print the database for the printer
  1281.  Show                       o - Show the database on the screen
  1282.  Save ASCII                 V - Save the database as an ASCII file
  1283.  Diagram                    g - Compare records graphically
  1284.  Form Editor                G - Call the Form Editor
  1285.  
  1286.  The Special Menu
  1287.  - - - - - - - - -
  1288.  Set Key Fields             F - Set the key fields for sorting
  1289.  Sort Incremental           z - Sort the records in alphabetic order
  1290.  Sort Decremental           Z - Sort the records in inversed alpha-
  1291.                                 betic order
  1292.  Edit Title Page            t - Edit the title page
  1293.  Edit Explonation Page      x - Edit the field explonations
  1294.  Show Field Explonation     X - Show the field explonation
  1295.  Set Main Field             k - Set the main field
  1296.  Set Step Size              T - Set the step size exponent (for
  1297.                                 example, give 2, step size = 10e2=100)
  1298.  Status                     w - Show the program status
  1299.  Reset                      W - Reset the program
  1300.  
  1301. Appendix 2 - Gadgets and Menus in the Field Editor
  1302. --------------------------------------------------
  1303.   
  1304.  The Project Menu
  1305.  - - - - - - -
  1306.  Load                       l - Load the field definitions file
  1307.  Save                       s - Save the field definitions with the
  1308.                                 old name
  1309.  Save As                    a - Save the field definitions with the
  1310.                                 new name
  1311.  Show Fields                o - Show the fields as a list
  1312.  Help                       y - Give help about the Editor
  1313.  OK                         O - OK with the definitions and exit to
  1314.                                 the main program
  1315.  Cancel                     C - Cancel the definitions and exit
  1316.  
  1317.  The Edit Menu
  1318.  - - - - - - -
  1319.  Insert                     i - Insert a new field
  1320.  Delete                     d - Delete the current field
  1321.  Change                     h - Change the places of two fields
  1322.  Move                       m - Move the current field to a new place
  1323.  Copy                       c - Copy the definitions of the current
  1324.                                 field to another field
  1325.  Clear                      j - Clear the definitions of the current 
  1326.                                 field
  1327.  Clear All                  J - Clear all field definitions
  1328.  Sort Incremental           z - Sort the fields in alphabetic order
  1329.  Sort Decremental           Z - Sort the fields in inversed alphabetic
  1330.                                 order
  1331.  
  1332.  Gadgets in the message window
  1333.  - - - - - - - - - - - - - - -
  1334.  Number of Flds               - The number of the fields
  1335.  Field                        - The current field whose definitions
  1336.                                 are displayed on the definition window
  1337.  
  1338.  Gadgets in the definition window
  1339.  - - - - - - - - - - - - - - - - -
  1340.  Type                         - The field type (String, Integer,
  1341.                                 Float, Type or Boolean)
  1342.  Title                        - The field title (max. 13 characters)
  1343.  Explonation                  - The field explonations
  1344.  Text Length                  - The maximum length of text with 
  1345.                                 string, type and boolean fields
  1346.  Min                          - The minimum value of a number field
  1347.  Max                          - The maximum value of a number field
  1348.  Number of Alts               - The number of alternative texts
  1349.  Alt. Text No.                - The alternative text number
  1350.  Unit                         - The unit of a number field
  1351.  
  1352. Appendix 3 - Gadgets in the file functions 
  1353. ------------------------------------------
  1354.  
  1355.  Directory                    - The open drawer
  1356.  File                         - The selected file
  1357.  Parent                     p - Return one drawer back in the root
  1358.                                 directory
  1359.  Cancel                 <ESC> - Exit without any operations
  1360.  Load/Save            <ENTER> - Alternatively load or save
  1361.  
  1362. Appendix 4 - Gadgets in the Edit Search Criteria, the Edit Title
  1363.              Page and the Edit Explonation Page functions
  1364. ----------------------------------------------------------------
  1365.  
  1366.  Clear                       j - Clear the current line
  1367.  ClearAll                    J - Clear all lines
  1368.  Cancel                  <ESC> - Exit canceling the changes 
  1369.  OK                          O - Exit 
  1370.  
  1371. Appendix 5 - The Print, the Show and the Save ASCII functions
  1372. -------------------------------------------------------------
  1373.  
  1374.  First Record                  - The first record in the print-out
  1375.  Last Record                   - The last record in the print-out
  1376.  First Field                   - The first field in the print-out 
  1377.  Last Field                    - The last field in the print-out
  1378.  Space Record                  - The number of empty lines between
  1379.                                  records
  1380.  Space Field                   - The number of empty lines between
  1381.                                  fields
  1382.  Max Length                    - The maximum length of the field title
  1383.                                  and explonation
  1384.  Max Title Len                 - The maximum length of the field title
  1385.  Field Title                   - Show the field title in the print-out
  1386.  Field Unit                    - Attach the unit to the field data
  1387.  Field Number                  - Attach the field number to the title
  1388.  Record Title                  - Show the record title 
  1389.  Database Title                - Show the title page
  1390.  Database Explonation          - Show the field explonations 
  1391.  Cancel                  <ESC> - Exit without any operations
  1392.  OK                    <ENTER> - Print, show or save the database
  1393.  
  1394. Appendix 6 - Gadgets in the Diagram function
  1395. --------------------------------------------
  1396.  
  1397.  Min                           - The minimum value of the scale
  1398.  Max                           - The maximum value of the scale
  1399.  Step Size                     - The step size of the scale
  1400.  Title Length                  - The maximum length of the record
  1401.                                  title
  1402.  Field                         - The field used in comparision (only
  1403.                                  number fields)
  1404.  Sort                        z - Sort the records 
  1405.  AddNumbs                      - Display the field values as numbers
  1406.                                  too
  1407.  
  1408. Appendix 7 - Gadgets in the Settings function 
  1409. ---------------------------------------------
  1410.  
  1411.  Alphabet                      - The language of alphabet and the 
  1412.                                  alphabet string
  1413.  Colours                       - The colour gadgets
  1414.  Cancel                  <ESC> - Exit without any operations
  1415.  Use                         O - Exit and use new settings
  1416.  Save&Use              <ENTER> - Exit, and save and use new settings
  1417.  Default                     d - Return the default settings
  1418.  ShowUnit                      - Attach the unit to the field data
  1419.  ShowFNum                      - Attach the field number to the title
  1420.  
  1421. Appendix 8 - Gadgets and Menus in the Form Editor
  1422. -------------------------------------------------
  1423.  
  1424.  The Project Menu
  1425.  - - - - - - - - -
  1426.  Print                       P - Print the database for the printer
  1427.  Show                        o - Show the database on the screen
  1428.  Save ASCII                  V - Save the database as an ASCII file
  1429.  Load Form Data              a - Load the form data file
  1430.  Save Form Data              A - Save the form data to the disk
  1431.  Exit                        q - Exit the Editor
  1432.  
  1433.  The Flags Menu
  1434.  - - - - - -
  1435.  Field Unit                  u - Attach the unit to the field data
  1436.  Field Number                n - Attach the field number to the title
  1437.  Database Title              t - Show the database title
  1438.  Database Explonation        e - Show the field explonations
  1439.  Split Words                 s - Allow the program to split words on
  1440.                                  two lines
  1441.  Delete Empty Lines          d - Delete empty lines from the print-out
  1442.  Field Titles Before Recs    b - The field titles are showed only
  1443.                                  once and before the records 
  1444.  Set First Record            f - Set the first record
  1445.  Set Last Record             l - Set the last record
  1446.  Set Record Space            c - Set the number of empty lines between
  1447.                                  records
  1448.  
  1449.  Gadgets
  1450.  - - - -
  1451.  Field                         - The current field
  1452.  X, Y                          - The coordinates of the field data
  1453.  Width                         - The width of the field data
  1454.  Height                        - The height of the field data 
  1455.  TitleX, TitleY                - The coordinates of the field title
  1456.  TitleLength                   - The length of the field title
  1457.  
  1458.  
  1459. Table of Contents
  1460. ----------------------------------------------------------------------
  1461.  
  1462. 1. What is Data Master
  1463.    1.1. Data Master
  1464.    1.2. Amiga system
  1465. 2. Database Terms
  1466.    2.1. Basics
  1467.    2.2. Field types
  1468.    2.3. Main field and key fields
  1469.    2.4. Field title, explonation and data
  1470. 3. The user interface
  1471.    3.1. The screen
  1472.    3.2. The message window
  1473.    3.3. Gadgets of the message window
  1474. 4. Getting started
  1475.    4.1. Running the program
  1476.    4.2. Testing 
  1477. 5. Editing the field data
  1478.    5.1. Basics
  1479.    5.2. String field
  1480.    5.3. Integer and float fields
  1481.    5.4. Type and boolean fields
  1482. 6. Handling records
  1483.    6.1. Basics
  1484.    6.2. Insert
  1485.    6.3. Delete
  1486.    6.4. Change
  1487.    6.5. Move
  1488.    6.6. Copy
  1489.    6.7. Clear
  1490.    6.8. Number of Records
  1491.    6.9. Delete Unedited Records
  1492.    6.10. The Block Menu
  1493. 7. Sorting and searching
  1494.    7.1. Sorting
  1495.    7.2. Searching for the specified record
  1496.         7.2.1. Edit Search Criteria (Filter)
  1497.         7.2.2. The search criteria of string, type and boolean fields
  1498.         7.2.3. The search criteria of integer and float fields
  1499.         7.2.4. Searching functions
  1500.    7.3. Searching for a text string
  1501. 8. Disk operations
  1502.    8.1. File formats
  1503.    8.2. Load Database
  1504.    8.3. Save Database
  1505. 9. Printing
  1506.    9.1. Show
  1507.    9.2. Print
  1508.    9.3. Save ASCII
  1509.    9.4. Diagram
  1510.    9.5. Form Editor
  1511.         9.5.1. The screen
  1512.         9.5.2. Placing the field in the form
  1513.         9.5.3. Flags
  1514.         9.5.4. The Project Menu
  1515. 10. Field Editor
  1516.    10.1. Basics
  1517.    10.2. The screen and the message window
  1518.    10.3. Menu commands
  1519.    10.4. The definition window
  1520.    10.5. How to define a database?
  1521.    10.6. How to change the definitions
  1522.          10.6.1. Basics
  1523.          10.6.2. Changing field titles and limitations
  1524.          10.6.3. Changing the order of the fields
  1525. 11. Other functions
  1526.    11.1. Settings
  1527.    11.2. Edit Title Page
  1528.    11.3. Edit Explonation Page
  1529.    11.4. Reset
  1530.    11.5. Status
  1531.    11.6. Set Main Field
  1532. Appendices
  1533.    Appendix 1 - Gadgets and Menus in the main program
  1534.    Appendix 2 - Gadgets and Menus in the Field Editor
  1535.    Appendix 3 - Gadgets in the file functions
  1536.    Appendix 4 - Gadgets in the Edit Search Criteria, the Edit Title
  1537.                 Page and the Edit Explonation Page functions
  1538.    Appendix 5 - The Print, the Show and the Save ASCII functions
  1539.    Appendix 6 - Gadgets in the Diagram function
  1540.    Appendix 7 - Gadgets in the Settings function
  1541.    Appendix 8 - Gadgets and Menus in the Form Editor 
  1542. Table of Contents 
  1543.  
  1544.  
  1545.